package com.allqj.sfx.infrastructure.converter;

/**
 * @author sjw
 * @className DataConverter
 * @date 2022/4/17 15:05
 * @description: entity&do转换器
 */
public interface DataConverter<ENTITY, DO, DAO> {
    // from do to entity
    ENTITY do2Entity(DO DO);

    // from entity to do
    DO entity2Do(ENTITY entity);

    // from entity to do
    DO entity2Do(ENTITY entity, DAO dao);
}
